package com.rose.doorto.footbathdoor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rose.doorto.footbathdoor.pojo.User;
import com.rose.doorto.footbathdoor.vo.LoginVo;
import com.rose.doorto.footbathdoor.vo.RegVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author lqc
 * @since 2024-07-08
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录
     * @param loginVo
     * @return
     */
    User login(LoginVo loginVo);

    /**
     * 注册
     * @param regVo
     * @return
     */
    int regist(RegVo regVo);

    /**
     * 根据手机号获取指定用户
     * @param mobile
     * @return
     */
    User getMobileUser(String mobile);

    User getMobile(String mobile);
}
